﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImageProcessing.DataEntryDialogs
{
    public partial class LocalEnhancementStatisticsDialog : Form
    {
        Dimentions dimentions;
        public LocalEnhancementStatisticsDialog(ref Dimentions dim)
        {
            InitializeComponent();
            this.dimentions = dim;
        }

        private void btnEnhance_Click(object sender, EventArgs e)
        {
            this.dimentions.ListDouble.Add(double.Parse(this.txtK0.Text));
            this.dimentions.ListDouble.Add(double.Parse(this.txtK1.Text));
            this.dimentions.ListDouble.Add(double.Parse(this.txtK2.Text));
            this.dimentions.ListDouble.Add(double.Parse(this.txtE.Text));
            this.dimentions.Value = int.Parse(this.txtWinSize.Text);
            this.Close();
        }
    }
}
